CC = gcc
CFLAGS = -O
INCLUDES_SRC = ./
INCLUDES_PORT = ../port/x86_linux_gcc/src/
INCLUDES_DEMO = ../port/x86_linux_gcc/demo/demo_1/
AR = ar
ARFLAGS = ru
RANLIB = ranlib
RM = rm
OUTPUT = ./
TARGET = libqos.a
#SRCS = \
#../../qos.c

#OBJS = $(SRCS:.c=.o)
OBJS = qos.o

all: $(TARGET)

$(TARGET): $(OBJS)
	$(AR) $(ARFLAGS) $(OUTPUT)$@ $(OBJS)
	$(RANLIB) $(OUTPUT)$@

%.o : %.c
	$(CC) $(CFLAGS) -I$(INCLUDES_SRC) -I$(INCLUDES_PORT) -I$(INCLUDES_DEMO) -c $<

clean:
	-$(RM) $(OBJS) $(OUTPUT)/$(TARGET)

rebuilt: clean all



.PHONY: clean all
